#include "TileBoard.h"
#include "ClientSettings.h"

#include "PaintUtils.h"

TileBoard::TileBoard( int _x, int _y, UINT _line, UINT _col )
	:Tile( _x, _y, ClientSettings::TILE_BOARD_SIZE, _line, _col)
{
	mState.Set(TileState::ACTIVE | TileState::EMPTY);
}


TileBoard::~TileBoard(void)
{
}

void TileBoard::Render( HDC _surface )
{

	PaintUtils::DrawBoardTile(_surface, mSquare, mState);

	if(mState.Has(TileState::HOVERED) || !mState.Has(TileState::EMPTY))
		PaintUtils::DrawTileLetter(_surface, mSquare, mLetter, mState );
}
